<template>
	<view class="more" style="padding: 10px 10px;">
		
		<ad unit-id="adunit-c97cc4d3c75da1b0" ad-type="video" ad-theme="white"></ad>
		<button class="item"  @click="rediretMini('wxece3a9a4c82f58c9','taoke/pages/shopping-guide/index?scene=Uv7yZcu')">
			<view class="item-img"><image src="/static/imgs/elem.svg" mode="scaleToFill"></image></view>
			<view class="item-info">
				<view class="item-name">饿了么大额红包</view>
				<view class="item-name" style="font-size: 16px;color: #aaaaaa;">新人最高20元无门槛红包</view>
			</view>
		</button>
		<view style="height: 5px;"></view>
		
		<button class="item"  @click="rediretMini('wxde8ac0a21135c07d','waimaiunion/pages/union/index?scene=1!Nlh-V75z0PVx!1!2!sVdWvg')">
			<view class="item-img"><image src="/static/imgs/meituan.png" mode="scaleToFill"></image></view>
			<view class="item-info">
				<view class="item-name">美团外卖节</view>
				<view class="item-name" style="font-size: 16px;color: #aaaaaa;">点我领红包，低价吃更好</view>
			</view>
		</button>
		<view style="height: 5px;"></view>
		<button class="item"  @click="rediretMini('wx3b18073ad61c00ed','pages/index/index')">
			<view class="item-img"><image src="/static/app/touxiang.png" mode="scaleToFill"></image></view>
			<view class="item-info">
				<view class="item-name">趣味头像生成</view>
				<view class="item-name" style="font-size: 16px;color: #aaaaaa;">圣诞头像，虎年大吉，头像生成</view>
			</view>
		</button>
		<view style="height: 5px;"></view>
		
		<button class="item" open-type="contact">
			<view class="item-img"><image src="/static/imgs/coonnet.png" mode="scaleToFill"></image></view>
			<view class="item-info">
				<view class="item-name">联系开发者</view>
				<view class="item-name" style="font-size: 16px;color: #aaaaaa;">大家还需要什么功能，都可联系我哦</view>
			</view>
		</button>
		<view style="height: 5px;"></view>
		<!-- <button class="item" open-type="contact" @click="rediretMini()">
			<view class="item-img">
				<image src="/static/imgs/coonnet.png" mode="scaleToFill"></image>
			</view>
			<view class="item-info">
				<view class="item-name">联系我</view>
				<view class="item-name">联系我</view>
			</view>
			
		</button> -->
		<ad unit-id="adunit-21a6bcd0e78f8ff8"></ad>
	</view>
</template>

<script>
	// 在页面中定义插屏广告
export default {
	data() {
		return {
			list: []
		};
	},
	onLoad() {
		
		
	},
	onShow() {
		
	},
	methods: {
		rediretMini(appid, url) {
			uni.navigateToMiniProgram({
				appId: appid,
				path: url,
				envVersion: 'release',
				success(res) {
					// 打开成功
					console.log(1);
				}
			});
		}
	}
};
</script>

<style lang="scss" >
page {
	background: RGB(245, 245, 245);
}
.item {
	display: flex;
	align-items: center;
	background-color: #ffffff;
	width: 100%;
	padding: 15px 15px;
	&:after {
		display: none;
	}

	.item-img {
		image {
			display: block;
			width: 90rpx;
			height: 90rpx;
			border-radius: 10rpx;
		}
	}

	.item-info {
		margin: 0 20rpx;
		flex: 1;
		min-width: 1px;
		.item-name {
			font-size: 32rpx;
			line-height: 40rpx;
			color: #333;
			text-align: left;
		}
	}

	.item-arrow {
		display: block;
		width: 40rpx;
		height: 40rpx;
	}
}
</style>
